var myChart = echarts.init(document.getElementById("b1"))
var option = {
    xAxis: {
        type: 'category',
    },
    yAxis: {
    },
    title: {
        text: '石子落地位置--沈林涛',
        left: 'center',
    },
    series:{
        symbolSize: 20,
        type:'scatter',
        data:[5,9,1,6,3],
    },
};
myChart.setOption(option);
//----------------------------------------------
var dataTest = []
for(var i=0;i<100;i++){
    var x = Math.floor(100*Math.random());
    var y = Math.floor(100*Math.random());
    dataTest.push([x,y]);
};

var myChart2 = echarts.init(document.getElementById("b2"))
var option2 = {
    xAxis: {},
    yAxis: {},
    title: {
        text: '石子落地位置--沈林涛',
        left: 'center',
    },
    series:{
        type:'scatter',
        data:dataTest,
        symbolSize: 5, 
    },
};
myChart2.setOption(option2);
//----------------------------------------------
var dataTest = []
for(var i=0;i<100;i++){
    var x = Math.floor(100*Math.random());
    var y = Math.floor(100*Math.random());
    dataTest.push([x,y]);
};

var myChart3 = echarts.init(document.getElementById("b3"))
var option3 = {
    xAxis: {},
    yAxis: {},
    title: {
        text: '石子落地位置--沈林涛',
        left: 'center',
    },
    dataZoom: [{
        type:'inside',
    }],
    series:{
        type:'scatter',
        data:dataTest,
        symbolSize: 5,
 
    },
};
myChart3.setOption(option3);
//----------------------------------------------
var dataTest = []
for(var i=0;i<100;i++){
    var x = Math.floor(100*Math.random());
    var y = Math.floor(100*Math.random());
    dataTest.push([x,y]);
};

var myChart4 = echarts.init(document.getElementById("b4"))
var option4 = {
    xAxis: {},
    yAxis: {},
    title: {
        text: '石子落地位置--沈林涛',
        left: 'center',
    },
    dataZoom: [{
        type:'inside',
    },{
        type:'slider',
        backgroundColor: 'red',
        borderColor: 'yellow',
    },{
        type:'slider',
        orient: 'vertical',
        backgroundColor: 'red',
        borderColor: 'yellow',
    }],
    series:{
        type:'scatter',
        data:dataTest,
        symbolSize: 5,
 
    },
};
myChart4.setOption(option4);
//----------------------------------------------
var dataTest = []
for(var i=0;i<100;i++){
    var x = Math.floor(100*Math.random());
    var y = Math.floor(100*Math.random());
    dataTest.push([x,y]);
};

var myChart5 = echarts.init(document.getElementById("b5"))
var option5 = {
    xAxis: {},
    yAxis: {},
    title: {
        text: '石子落地位置--沈林涛',
        left: 'center',
    },
    toolbox: {
        bottom: 1,
        feature: {
            saveAsImage: {},
            dataZoom: {},
            dataView: {},
            restore: {},
        },
    },
    series:{
        type:'scatter',
        data:dataTest,
        symbolSize: 5,
 
    },
};
myChart5.setOption(option5);
//----------------------------------------------
var dataTest = []
for(var i=0;i<100;i++){
    var x = Math.floor(100*Math.random());
    var y = Math.floor(100*Math.random());
    dataTest.push([x*x,y*y]);
};
var dataTest1 = [];
for(var i=0;i<100;i++){
    var x1 = Math.floor(100*Math.random());
    var y1 = Math.floor(100*Math.random());
    dataTest1.push([x1*x1,-y1*y1]);
};
var myChart6 = echarts.init(document.getElementById("b6"))
var option6 = {
    xAxis: {},
    yAxis: {},
    title: {
        text: '石子落地位置--沈林涛',
        left: 'center',
    },
    series:[{
        name:'石头A',
        type:'scatter',
        data:dataTest,
        symbolSize: 10,
    },{
        name:'石头B',
        type:'scatter',
        data:dataTest1,
        symbolSize: 10,
    }],
};
myChart6.setOption(option6);
